home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4073 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: daily-planet.execpc.com!usenet
  2. From: innuendo@execpc.com (Jonathan Gapen)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Shared library open and close functions
  5. Date: 18 Feb 1996 02:23:47 GMT
  6. Organization: esCom Amiga Madison Enthusiast's Organisation
  7. Message-ID: <4g62jj$91t@daily-planet.execpc.com>
  8. References: <510.6619T1238T1638@Th0r.foo.bar> <935.6621T819T991@norconnect.no>
  9. NNTP-Posting-Host: specialk.execpc.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=iso-8859-1
  12. Content-Transfer-Encoding: 8bit
  13. X-NewsSoftware: GRn 2.1 Feb 19, 1994
  14.  
  15.  
  16. In article <935.6621T819T991@norconnect.no> kenneth@norconnect.no (Kenneth C. Nilsen) writes:
  17. > The 15-Feb-96 20:40:20, Christopher Naas wrote in msg n/a : 
  18. > >How do I add functions to a shared library that are called the first time the
  19. > >library is opened and when the library is removed from memory?
  20. > >I want one function that is called the first time the library is opened, and
  21. > >one function that is called when the library is closed by the last user and
  22. > >it is flushed from memory.
  23. > 1) You have to make the library yourself cause OpenLibrary() calls a init
  24. > when a library is opened for the first time and this can't be added
  25. > inbetween. You can not use exec.library functions for this purpose.
  26. > 2) You have to patch the OpenLibrary()/CloseLibrary() vector to call routines
  27. > when your library is opened/closed, tho I will not recommend this.
  28.  
  29.    3) Read the SAS/C documentation on shared libraries, to find out how to add
  30. custom functions to the supplied library init code.  This is my recommended
  31. method.
  32.  
  33. --
  34. Jonathan Gapen (innuendo@execpc.com)
  35. Bread in, toast out. How does it DO that?
  36.